﻿<?xml version="1.0" encoding="UTF-8"?>
<Snippets>
  <Category Name="My Snippets">
    <Snippet Name="About Snippets" Shortcut=""><![CDATA[<!--
ABOUT SNIPPETS

Snippets are a way to store bits of IMML that you find yourself using
often.  To add a snippet, select the text and drag it to the category
where you want it to be stored.  Once its stored, you can right click
to edit the snippet.  While editing, you can also give it a shortcut.

To use a snippet you can either drag it from the snippet list into the 
editor or press Alt+DownArrow from within the editor to access a list 
of all snippets with shortcuts assigned to them.
-->]]></Snippet>
  </Category>
  
  <Category Name="Triggers">
    <Snippet Name="MouseClick" Shortcut="">
      <![CDATA[<Trigger Event="MouseClick" Target="MouseEventHandler" />]]>
    </Snippet>
    <Snippet Name="Loaded" Shortcut="">
      <![CDATA[ 
<Trigger Event="Loaded" Target="OnLoad" />
]]>
    </Snippet>
    <Snippet Name="Collided" Shortcut="">
      <![CDATA[
<Trigger Event="Collided" Target="OnCollision" />
]]>
    </Snippet>
    <Snippet Name="CollidedConditional" Shortcut="">
      <![CDATA[  
<Trigger Event="Collided" Target="OnCollision">
  <Condition Expression="CollidedElement.Name == TODO" Source="EventData" Type="Allow" />
</Trigger>
]]>
    </Snippet>
    <Snippet Name="KeyDown" Shortcut="">
      <![CDATA[
      <Trigger Event="KeyDown" Target="OnKeyDown" />
      ]]>
    </Snippet>
    <Snippet Name="KeyUp" Shortcut="">
      <![CDATA[
      <Trigger Event="KeyUp" Target="OnKeyUp" />
      ]]>
    </Snippet>
    <Snippet Name="MouseDown" Shortcut="">
      <![CDATA[
      <Trigger Event="MouseDown" Target="MouseEventHandler" />
      ]]>
    </Snippet>
  </Category>      
  <Category Name="Scripts">
    <Snippet Name="Empty" Shortcut="">
      <![CDATA[
<Script Name="Script">
  function main(obj, args)
  
  end
</Script>
]]>
    </Snippet>
    <Snippet Name="MouseTarget" Shortcut="">
      <![CDATA[
<Script Name="MouseEventHandler">
  function main(obj, args)
    leftButtonDown = args.data.leftbutton
    rightButtonDown = args.data.rightbutton
    absX = args.data.absx
    absY = args.data.absy
    
  end
</Script>
]]>
    </Snippet>
    <Snippet Name="PhysicsTarget" Shortcut="">
      <![CDATA[
<Script Name="Script">
  function main(obj, args)
  
  end
</Script>
]]>
    </Snippet>
    <Snippet Name="KeyboardTarget" Shortcut="">
      <![CDATA[
<Script Name="Script">
  function main(obj, args)
  
  end
</Script>
]]>
    </Snippet>
    <Snippet Name="NetworkConnectionTarget" Shortcut="">
      <![CDATA[
<Script Name="Script">
  function main(obj, args)
  
  end
</Script>
]]>
    </Snippet>
    <Snippet Name="NetworkMessageTarget" Shortcut="">
      <![CDATA[
<Script Name="Script">
  function main(obj, args)
  
  end
</Script>
]]>
    </Snippet>
    <Snippet Name="AnimationFinishedTarget" Shortcut="">
      <![CDATA[
<Script Name="Script">
  function main(obj, args)
  
  end
</Script>
]]>
    </Snippet>
    <Snippet Name="SoundFinishedTarget" Shortcut="">
      <![CDATA[
<Script Name="Script">
  function main(obj, args)
  
  end
</Script>
]]>
    </Snippet>
    <Snippet Name="AnimationFinishedTarget" Shortcut="">
      <![CDATA[
<Script Name="Script">
  function main(obj, args)
  
  end
</Script>
]]>
    </Snippet>
  </Category>
</Snippets>